package com.sc.sysconfig.controller;

import com.sc.sysconfig.dto.LogQueryDTO;
import com.sc.sysconfig.entity.SysLog;
import com.sc.sysconfig.service.SysLogService;
import com.sc.sysconfig.vo.PageVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 系统日志控制器
 *
 * @author 徐赫阳
 * @date 2021/09/05
 */
@Api(description = "字典")
@RestController
@RequestMapping("/log")
public class SysLogController {
    /**
     * 服务对象
     */
    @Autowired
    private SysLogService sysLogService;

    @ApiOperation("分页获取日志")
    @PostMapping("/getLogList")
    public PageVO<SysLog> getLogList(@RequestBody LogQueryDTO queryDTO){
        return sysLogService.getLogList(queryDTO);
    }

}
